
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>css/member_basic.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>style/member_total.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>css/basic.css" />
<link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>style/index.css" />
<script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/jquery.min.js"></script>
<link type="image/x-icon" rel="shortcut icon" href="<?php echo isset($skin)?$skin:"";?>img/favicon.ico" />
<script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/bootstrap.min.js"></script>
    <title>会员中心-<?php echo isset($webname)?$webname:"";?></title>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid" style="position:relative;">
        <div class="navbar-header nav_header">
            <a href="javascript:void(0);" class="navbar-brand" onclick="history.back();"><span class="glyphicon glyphicon-chevron-left icon"></span></a>
            <a href="javascript:void(0);" class="btn refresh" onclick="window.location.reload();"><span class="glyphicon glyphicon-refresh"></span></a>
        </div>
        <p style="position:absolute; top:15px; left:50%; margin-left:-30px; font-size:16px; text-shadow:2px 2px 3px #ccc;">游戏乐园</p>
    </div>
</nav>
<div id="main">
    <div class="member_header">
    <div class="container-fluid">
        <div class="row member_bg">
            <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7 pad0">
                <div class="media">
                    <div class="media-left">
                        <img src="<?php echo isset($skin)?$skin:"";?>img/user/head.png" alt="用户头像" class="media-object">
                    </div>
                    <div class="media-body">
                        <h4 class=""><span class="red"><?php echo isset($info->nickname)?$info->nickname:"";?></span> (ID : <span class="red"><?php echo isset($info->usersid)?$info->usersid:"";?></span>)</h4>
                    </div>
                </div>
            </div>
            <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5 info_login pad0">
                <div class="loginout pull-right">
                    <a href="<?php echo url('users/out');?>" class="btn btn-default">退出登陆</a>
                    <a style="display: none" href="member_mysignin.shtml" class="btn btn-default">签到</a>
                </div>
            </div>
        </div>
    </div>

    <div class="container-fluid member_infos">
        <div class="row member_bank white_bg">
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pad4">
                <p><img src="<?php echo isset($skin)?$skin:"";?>img/user/coin_1.png" alt="乐币"> 余额 : ¥ <span class="red"><?php echo isset($info->points)?$info->points:"";?></span></p>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pad4">
                <p><img src="<?php echo isset($skin)?$skin:"";?>img/user/coin_2.png" alt="金币"> 银行 : ¥  <span class="red"><?php echo isset($info->bankpoints)?$info->bankpoints:"";?></span></p>
            </div>
        </div>
        <div class="row member_bank white_bg">
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pad4">
                <p><img src="<?php echo isset($skin)?$skin:"";?>img/user/pay.png" width="25" height="25" alt="乐币"> 充值 : ¥ <span class="red"><?php echo isset($rmb)?$rmb:"";?></span></p>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 pad4">
                <p><img src="<?php echo isset($skin)?$skin:"";?>img/user/payls.png" width="25" height="25" alt="金币"> 流水 : ¥ <span class="red"><?php echo isset($tzpoint)?$tzpoint:"";?></span></p>
            </div>
        </div>
    </div>



</div>
    <div class="container-fluid">
        <div class="row white_bg member_mycard">
            <?php if($withdrawals->type==2 || !$id){?>
            <form action="">
                <div class="form-group member_coin">
                    <label for="desposit">微信:</label>
                    <input type="text" class="form-control" value="<?php echo isset($withdrawals->account)?$withdrawals->account:"";?>" name="weichat" id="weichat" placeholder="微信帐号">
                </div>
                <button type="button" class="btn btn-danger btn-block weichat" onclick="add('weichat')">提交</button>
            </form>
            <?php }?>
            <?php if($withdrawals->type==1 || !$id){?>
            <form action="">
                <div class="form-group member_coin">
                    <label for="desposit">支付宝:</label>
                    <input type="text" class="form-control" name="alipay" value="<?php echo isset($withdrawals->account)?$withdrawals->account:"";?>" id="alipay" placeholder="支付宝账号">
                </div>

                <button type="button" class="btn btn-danger btn-block alipay" onclick="add('alipay');">提交</button>
            </form>
            <?php }?>
            <?php if($withdrawals->type==3 || !$id){?>
            <form action="">
                <div class="form-group member_coin">
                    <label for="desposit">选择银行:</label>
                    <select class='form-control' id="type">
                        <option value="">选择收款方式</option>
                        <option value="中国工商银行" <?php if($withdrawals->name=='中国工商银行')echo 'selected';?>>中国工商银行</option>
                        <option value="中国农业银行" <?php if($withdrawals->name=='中国农业银行')echo 'selected';?>>中国农业银行</option>
                        <option value="中国建设银行" <?php if($withdrawals->name=='中国建设银行')echo 'selected';?>>中国建设银行</option>
                        <option value="中国银行" <?php if($withdrawals->name=='中国银行')echo 'selected';?>>中国银行</option>
                        <option value="中国民生银行" <?php if($withdrawals->name=='中国民生银行')echo 'selected';?>>中国民生银行</option>
                        <option value="招商银行" <?php if($withdrawals->name=='招商银行')echo 'selected';?>>招商银行</option>
                        <option value="兴业银行" <?php if($withdrawals->name=='兴业银行')echo 'selected';?>>兴业银行</option>
                        <option value="交通银行" <?php if($withdrawals->name=='交通银行')echo 'selected';?>>交通银行</option>
                        <option value="广发银行" <?php if($withdrawals->name=='广发银行')echo 'selected';?>>广发银行</option>
                        <option value="中信银行" <?php if($withdrawals->name=='中信银行')echo 'selected';?>>中信银行</option>
                        <option value="浦东发展银行" <?php if($withdrawals->name=='浦东发展银行')echo 'selected';?>>浦东发展银行</option>
                        <option value="邮政储蓄银行" <?php if($withdrawals->name=='邮政储蓄银行')echo 'selected';?>>邮政储蓄银行</option>
                    </select>
                </div>
                <div class="form-group member_coin">
                    <input type="text" class="form-control" value="<?php echo isset($withdrawals->account)?$withdrawals->account:"";?>" id="account" name="alipay" placeholder="收款帐号">
                </div>
                <div class="form-group member_coin">
                    <input type="text" class="form-control" value="<?php echo isset($withdrawals->province)?$withdrawals->province:"";?>" id="province" name="alipay" placeholder="开户省">
                </div>
                <div class="form-group member_coin">
                    <input type="text" class="form-control" value="<?php echo isset($withdrawals->city)?$withdrawals->city:"";?>" id="city" name="alipay" placeholder="开户市">
                </div>
                <div class="form-group member_coin">
                    <input type="text" class="form-control" value="<?php echo isset($withdrawals->bank_name)?$withdrawals->bank_name:"";?>" id="bank_name" name="alipay" placeholder="开户网点名称">
                </div>


                <button type="button"  class="btn btn-danger btn-block bank" onclick="add_bank()">提交</button>
            </form>
            <?php }?>
            <input type="hidden" name="id" id="id" value="<?php echo isset($withdrawals->id)?$withdrawals->id:"";?>">
        </div>
    </div>
</div>
﻿<nav class="navbar-default navbar-fixed-bottom nav_bg">
    <div class="container-fluid nav-li">
        <ul class="nav navbar-nav">
            <li><a href="mobile.php"><span class="glyphicon glyphicon-home"></span> <b>首页</b></a></li>
            <li><a href="<?php echo url('game/index');?>"><span class="glyphicon glyphicon-th-large"></span> <b>游戏乐园</b></a></li>
            <li><a href="<?php echo url('users/index');?>"><span class="glyphicon glyphicon-user"></span> <b>会员</b></a></li>
        </ul>
    </div>
</nav>
<div style="display: none">
<script>var lainframe;</script>

<script type="text/javascript">
    function add(idx){
        var acc=$("#"+idx).val();
        if(acc==''){
            alert("账户不能为空");
            return false;
        }
        var id=$("#id").val();
        $.ajax({
            type: 'post',
            url: '<?php echo url('Banking/add_account');?>',
            data: {type: idx, acc: acc,id:id},
            dataType: 'json',
            success: function (data) {
                if (data.status == 2 || data.status == 2) {
                    alert('你登录超时!');
                    location.href = '<?php echo url('users/login');?>';
                    return;
                }
                alert(data.message);
                if (data.status == 0) {
                    location.href='<?php echo url('Banking/index');?>';
                } else {

                }

            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert('检验失败,未知错误!');
            }
        });
    }
    function add_bank() {
        var type=$("#type").val();
        if(type==0){
            alert("请选择银行");
            return ;
        }
        var id=$("#id").val();
        var acc=$("#account").val();
        if(acc==''){
            alert("账户不能为空");
            return false;
        }
        var province=$("#province").val();
        if(province==''){
            alert("开户行所在省份不能为空");
            return false;
        }
        var city=$("#city").val();
        if(city==''){
            alert("开户行所在市不能为空");
            return false;
        }
        var bank_name=$("#bank_name").val();
        if(bank_name==''){
            alert("开户行不能为空");
            return false;
        }
        $.ajax({
            type: 'post',
            url: '<?php echo url('Banking/add_account');?>',
            data: {type: 'bank', acc: acc,province:province,bank_type:type,city:city,bank_name:bank_name,id:id},
            dataType: 'json',
            success: function (data) {
                if (data.status == 2 || data.status == 2) {
                    alert('你登录超时!');
                    location.href = '<?php echo url('users/login');?>';
                    return;
                }
                if (data.status == 0) {
                    alert(data.message);
                    location.href='<?php echo url('Banking/index');?>';
                } else {
                    alert(data.message);
                }

            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert('检验失败,未知错误!');
            }
        });
    }
</script>
</body>
</html>